<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>易商通运营平台</title>
    <script type="text/javascript" src="__PUBLIC__/libs/js/jquery.js"></script>
    <script type="text/javascript" src="__PUBLIC__/libs/js/framework.js"></script>
    <link href="__PUBLIC__/libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
    <style>body {
        background-color: #dbeefd
    }</style>
    <script type="text/javascript">

        //获取复选框的值
        function getCheckValue(){
            var msg = "";
            $("input:checkbox[name=custtype]").each(function(){
               if($(this).attr("checked")){
                msg += "," + $(this).val()+"";
               }
            })
            if(msg == ""){
            msg = "";
            }else{
            msg = msg.substring(1);
            }
            document.getElementById("custtypes").value=msg;
           // alert(msg);
        }

    </script>
</head>
<body>
<div class="box1">
    <fieldset style="border-color:#999999;">
        <legend>站点配置</legend>
        <form action="__URL__/saveconfig" method="post">
            <table class="tableStyle">
                <tr>
                    <td width="200px"  align="right"> 转为公海客户时间配置：</td>
                    <td>
                        <input type="text" name="customDay" value="{$customDay}" style="width:200px;" />
                    </td>
                </tr>
                <tr>
                    <td width="200px"  align="right"> 客户类型：</td>
                    <td>
                        <volist name="custtype" id="vo">
                        <input type="checkbox" name="custtype" value="{$vo['id']}"
                            <?php if(in_array((int)$vo['id'],explode(',',$custtypes)))
                         echo 'checked';  else echo 'no'; ?>
                            truetype="checkbox">
                        <label class="hand">{$vo["name"]}</label>
                        </volist>
                        <input type="hidden" name="custtypes" id="custtypes" >
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td>
                        <input type="submit" name="" value="保存" onclick="getCheckValue();" />
                        <input type="hidden" name="files" value="siteconfig.php" />
                    </td>
                </tr>

            </table>
        </form>
    </fieldset>
</div>
</body>
</html>